import request from '@/utils/request'
//登录
export function loginAPI(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
//获取用户个人信息
export function getUserInfo() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
//获取用户头像信息
export function getUserPhoto(id) {
  return request({
    url: '/sys/user/'+id,
    method: 'get'
  })
}